org.eclipse.vtp.framework.engine
Class FieldDescriptor

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.FieldDescriptor

public final class FieldDescriptor
extends java.lang.Object

An object that describes a field of a dynamic data type.

Author:
Lonnie Pryor

Constructor Summary
FieldDescriptor(java.lang.String name, java.lang.String type, java.lang.String initialValue)
          Creates a new FieldDescriptor.
 
Method Summary
 java.lang.String getInitialValue()
          Returns the initial value of this field when an object is created.
 java.lang.String getName()
          Returns the name of this field.
 java.lang.String getType()
          Returns the type of this field.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldDescriptor

public FieldDescriptor(java.lang.String name,
                       java.lang.String type,
                       java.lang.String initialValue)
                throws java.lang.IllegalArgumentException,
                       java.lang.NullPointerException
Creates a new FieldDescriptor.

Parameters:
name - The name of this field.
type - The type of this field.
initialValue - The initial value of this field when an object is created.
Throws:
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.IllegalArgumentException - If the supplied type is empty.
java.lang.NullPointerException - If the supplied name is null.
java.lang.NullPointerException - If the supplied type is null.
Method Detail

getName

public java.lang.String getName()
Returns the name of this field.

Returns:
The name of this field.

getType

public java.lang.String getType()
Returns the type of this field.

Returns:
The type of this field.

getInitialValue

public java.lang.String getInitialValue()
Returns the initial value of this field when an object is created.

Returns:
The initial value of this field when an object is created.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object